import { createStore } from 'vuex';

export default createStore({
    state: {
        menuData: [], // 存储菜单数据
        userData: {}, // 存储用户数据
    },
    getters: {},
    mutations: {
        saveMenuData(state, menuData) {
            state.menuData = menuData
        },
        saveUserData(state, userData) {
            state.userData = userData
        },
    },
    actions: {},
    modules: {}
});